package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.template.UserInfoTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * spring-data-jpa接口操作
 */

@Repository
public interface UserInfoTemplateRepository extends ElasticsearchRepository<UserInfoTemplate,Long> {

    /**
     * 根据目的地名称查询所有用户信息
     * @param destName
     * @return
     */
    List<UserInfoTemplate> findByDestName(String destName);
}
